package org.budo.ocr.service.impl;

import java.util.List;

import org.budo.ocr.service.api.OcrResponse;
import org.budo.support.lang.util.StringUtil;

import lombok.Getter;
import lombok.Setter;

/**
 * @author limingwei
 */
@Getter
@Setter
public class DefaultOcrResponse implements OcrResponse {
    private List<String> words;

    public DefaultOcrResponse() {}

    public DefaultOcrResponse(List<String> words) {
        this.words = words;
    }

    @Override
    public String toString() {
        return super.toString() + ", words=" + StringUtil.join(this.getWords());
    }
}